<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');
class Report extends DataMapper {

    var $prefix = "user_panel_";

    var $validation = array(
        'type' => array(
            'label' => 'Type of report',
            'rules' => array('required', 'trim', 'alpha_dash_space', 'max_length' => 50)
        ),
        'report' => array(
            'label' => 'Report',
            'rules' => array('required', 'trim')
        ),
        'user_id' => array(
            'label' => 'User ID',
            'rules' => array('required', 'trim', 'numeric')
        ),
        'date' => array(
            'label' => 'Date',
            'rules' => array('required', 'trim', 'valid_date')
        ),
        'resolved' => array(
            'label' => 'Resolved',
            'rules' => array('required', 'trim', 'numeric')
        )
    );

}